package com.autumn.zero.authorization.entitys.users;

import javax.persistence.Column;
import javax.persistence.Table;

import com.autumn.constants.SettingConstants;
import com.autumn.mybatis.mapper.annotation.ColumnOrder;
import com.autumn.mybatis.mapper.annotation.Index;
import com.autumn.zero.authorization.entitys.AbstractClaim;

/**
 * 用户声明
 * 
 * @author 杨昌国 2018-11-25 01:07:21
 */
@Table(name = SettingConstants.SYS_TABLE_PREFIX + "_user_claim")
public class UserClaim extends AbstractClaim {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1726633059000151088L;

	/**
	 * 字段 userId
	 */
	public static final String FILED_USER_ID = "userId";
	
	/**
	 * 用户id
	 */
	@Column(name = "user_id", nullable = false)
	@Index
	@ColumnOrder(1)
	private Long userId;

	/**
	 * 获取用户Id
	 * 
	 * @return
	 */
	public Long getUserId() {
		return userId;
	}

	/**
	 * 设置用户Id
	 * 
	 * @param userId
	 *            用户Id
	 */
	public void setUserId(Long userId) {
		this.userId = userId;
	}
}
